﻿using IMES.Common.Dtos;
using MediatR;

namespace Darius.API.Application.Commands.Approval
{
    public class ApprovalCreateCommand:IRequest<Result>
    {
        public int ApprovalApplicationId { get; set; }
        /// <summary>
        /// 提交时间
        /// </summary>
        public DateTime SubmitlDate { get; set; }
        /// <summary>
        /// 提交人
        /// </summary>
        public string SubmitName { get; set; }
        /// <summary>
        /// 审批流程名称
        /// </summary>
        public int SubmitEventId { get; set; }
        /// <summary>
        /// 订单ID
        /// </summary>
        public int OrderId { get; set; }
        public List<ApprovalDto> ApprovalsDto { get; set; }=new List<ApprovalDto>();
    }
    public class ApprovalDto
    {
        public int ApprovalId { get; set; }
        /// <summary>
        /// 申请表ID
        /// </summary>
        public int ApprovalApplicationId { get; set; }
        /// <summary>
        /// 审批人
        /// </summary>
        public string Approvaler { get; set; }
        public int ApprovalStatus { get; set; }=0;
        /// <summary>
        /// 审批时间
        /// </summary>
        public DateTime ApprovalTime { get; set; } = DateTime.Now;

    }
}
